package com.xiyi_design.printer_manage.service;

import com.github.pagehelper.PageInfo;

import java.io.Serializable;
import java.util.List;

public interface BaseService<T> {

    int save(T t);

    int update(T t);

    int deleteById(Serializable id);

    T getById(Serializable id);

    List<T> getList();

    PageInfo<T> getListByPage(int pageNo, int pageSize);
}
